<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main_screen_nav_graph"
    app:startDestination="@id/loadingFragment">

    <fragment
        android:id="@+id/loadingFragment"
        android:name="com.example.skillcinema.ui.screens.main.LoadingFragment"
        android:label="fragment_loading"
        tools:layout="@layout/fragment_loading" >
        <action
            android:id="@+id/action_loadingFragment_to_homeFragment"
            app:destination="@id/homeFragment"
            app:enterAnim="@anim/nav_default_enter_anim"
            app:exitAnim="@anim/nav_default_exit_anim"
            app:popEnterAnim="@anim/nav_default_pop_enter_anim"
            app:popExitAnim="@anim/nav_default_pop_exit_anim"
            app:popUpTo="@id/loadingFragment"
            app:popUpToInclusive="true" />
    </fragment>
    <fragment
        android:id="@+id/homeFragment"
        android:name="com.example.skillcinema.ui.screens.main.HomeFragment"
        android:label="fragment_home"
        tools:layout="@layout/fragment_home" >
        <action
            android:id="@+id/action_homeFragment_to_filmAllFragment"
            app:destination="@id/filmAllFragment" />
        <action
            android:id="@+id/action_homeFragment_to_filmDetailsFragment"
            app:destination="@id/filmDetailsFragment" />
    </fragment>
    <fragment
        android:id="@+id/profileFragment"
        android:name="com.example.skillcinema.ui.screens.profile.ProfileFragment"
        android:label="fragment_profile"
        tools:layout="@layout/fragment_profile" >
        <action
            android:id="@+id/action_profileFragment_to_filmAllFragment"
            app:destination="@id/filmAllFragment" />
        <action
            android:id="@+id/action_profileFragment_to_filmDetailsFragment"
            app:destination="@id/filmDetailsFragment" />
    </fragment>
    <fragment
        android:id="@+id/searchFragment"
        android:name="com.example.skillcinema.ui.screens.search.SearchFragment"
        android:label="fragment_search"
        tools:layout="@layout/fragment_search" >
        <action
            android:id="@+id/action_searchFragment_to_filmAllFragment"
            app:destination="@id/filmAllFragment" />
        <action
            android:id="@+id/action_searchFragment_to_filmDetailsFragment"
            app:destination="@id/filmDetailsFragment" />
        <action
            android:id="@+id/action_searchFragment_to_searchOptionsFragment"
            app:destination="@id/searchOptionsFragment" />
    </fragment>
    <fragment
        android:id="@+id/filmAllFragment"
        android:name="com.example.skillcinema.ui.screens.main.FilmAllFragment"
        android:label="fragment_film_all"
        tools:layout="@layout/fragment_film_all" >
        <action
            android:id="@+id/action_filmAllFragment_to_filmDetailsFragment"
            app:destination="@id/filmDetailsFragment" />
    </fragment>
    <fragment
        android:id="@+id/filmDetailsFragment"
        android:name="com.example.skillcinema.ui.screens.main.FilmDetailsFragment"
        android:label="fragment_film_details"
        tools:layout="@layout/fragment_film_details" >
        <action
            android:id="@+id/action_filmDetailsFragment_to_filmAllFragment"
            app:destination="@id/filmAllFragment" />
        <action
            android:id="@+id/action_filmDetailsFragment_to_seasonDetailsFragment"
            app:destination="@id/seasonDetailsFragment" />
        <action
            android:id="@+id/action_filmDetailsFragment_to_staffListFragment"
            app:destination="@id/staffListFragment" />
        <action
            android:id="@+id/action_filmDetailsFragment_to_staffDetailFragment"
            app:destination="@id/staffDetailFragment" />
        <action
            android:id="@+id/action_filmDetailsFragment_to_galleryListFragment"
            app:destination="@id/galleryListFragment" />
    </fragment>
    <fragment
        android:id="@+id/seasonDetailsFragment"
        android:name="com.example.skillcinema.ui.screens.main.SeasonDetailsFragment"
        android:label="fragment_season_details"
        tools:layout="@layout/fragment_season_details" />
    <fragment
        android:id="@+id/staffListFragment"
        android:name="com.example.skillcinema.ui.screens.main.StaffListFragment"
        android:label="fragment_staff_list"
        tools:layout="@layout/fragment_staff_list" >
        <action
            android:id="@+id/action_staffListFragment_to_staffDetailFragment"
            app:destination="@id/staffDetailFragment" />
    </fragment>
    <fragment
        android:id="@+id/staffDetailFragment"
        android:name="com.example.skillcinema.ui.screens.main.StaffDetailFragment"
        android:label="fragment_actor_detail"
        tools:layout="@layout/fragment_staff_detail" >
        <action
            android:id="@+id/action_staffDetailFragment_to_filmDetailsFragment"
            app:destination="@id/filmDetailsFragment" />
        <action
            android:id="@+id/action_staffDetailFragment_to_filmAllFragment"
            app:destination="@id/filmAllFragment" />
        <action
            android:id="@+id/action_staffDetailFragment_to_staffFilmographyFragment"
            app:destination="@id/staffFilmographyFragment" />
    </fragment>
    <fragment
        android:id="@+id/staffFilmographyFragment"
        android:name="com.example.skillcinema.ui.screens.main.StaffFilmographyFragment"
        android:label="fragment_staff_filmography"
        tools:layout="@layout/fragment_staff_filmography" >
        <action
            android:id="@+id/action_staffFilmographyFragment_to_filmDetailsFragment"
            app:destination="@id/filmDetailsFragment" />
    </fragment>
    <fragment
        android:id="@+id/galleryListFragment"
        android:name="com.example.skillcinema.ui.screens.main.GalleryListFragment"
        android:label="fragment_gallery_list"
        tools:layout="@layout/fragment_gallery_list" />
    <fragment
        android:id="@+id/searchOptionsFragment"
        android:name="com.example.skillcinema.ui.screens.search.SearchOptionsFragment"
        android:label="fragment_search_options"
        tools:layout="@layout/fragment_search_options" >
        <action
            android:id="@+id/action_searchOptionsFragment_to_countryAndGenreSearchFragment"
            app:destination="@id/countryAndGenreSearchFragment" />
        <action
            android:id="@+id/action_searchOptionsFragment_to_yearSearchFragment"
            app:destination="@id/yearSearchFragment" />
    </fragment>
    <fragment
        android:id="@+id/countryAndGenreSearchFragment"
        android:name="com.example.skillcinema.ui.screens.search.CountryAndGenreSearchFragment"
        android:label="fragment_country_and_genre_search"
        tools:layout="@layout/fragment_country_and_genre_search" />
    <fragment
        android:id="@+id/yearSearchFragment"
        android:name="com.example.skillcinema.ui.screens.search.YearSearchFragment"
        android:label="fragment_year_search"
        tools:layout="@layout/fragment_year_search" />
</navigation>